package lesson08;

/**
 * 全能运动员
 */
public class AllAthlete extends Athlete implements Sprint,Dive,Shoot{
    @Override
    public void dive() {
        System.out.println(this.getName() + "会跳水");
    }

    @Override
    public void shoot() {
        System.out.println(this.getName() + "会射击");
    }

    @Override
    public void sprint() {
        System.out.println(this.getName() + "会短跑");
    }
}
